﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TravianRaces" targetNamespace="http://tempuri.org/TravianRaces.xsd" xmlns:mstns="http://tempuri.org/TravianRaces.xsd" xmlns="http://tempuri.org/TravianRaces.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="TravConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TravConnectionString (MySettings)" PropertyReference="ApplicationSettings.AdminPanel.My.MySettings.GlobalReference.Default.TravConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="racesTableAdapter" GeneratorDataComponentClassName="racesTableAdapter" Name="races" UserDataComponentName="racesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TravConnectionString (MySettings)" DbObjectName="Travian.dbo.races" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Travian].[dbo].[races] WHERE (([Race_id] = ?) AND ([Race_name] = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Race_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Race_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Race_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Race_name" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Travian].[dbo].[races] ([Race_name]) VALUES (?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Race_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Race_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Race_id, Race_name FROM dbo.races</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Travian].[dbo].[races] SET [Race_name] = ? WHERE (([Race_id] = ?) AND ([Race_name] = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Race_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Race_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Race_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Race_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Race_name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Race_name" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Race_id" DataSetColumn="Race_id" />
              <Mapping SourceColumn="Race_name" DataSetColumn="Race_name" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="TravianRaces" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="TravianRaces" msprop:Generator_UserDSName="TravianRaces">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="races" msprop:Generator_TableClassName="racesDataTable" msprop:Generator_TableVarName="tableraces" msprop:Generator_TablePropName="races" msprop:Generator_RowDeletingName="racesRowDeleting" msprop:Generator_UserTableName="races" msprop:Generator_RowChangingName="racesRowChanging" msprop:Generator_RowEvHandlerName="racesRowChangeEventHandler" msprop:Generator_RowDeletedName="racesRowDeleted" msprop:Generator_RowEvArgName="racesRowChangeEvent" msprop:Generator_RowChangedName="racesRowChanged" msprop:Generator_RowClassName="racesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Race_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnRace_id" msprop:Generator_ColumnPropNameInRow="Race_id" msprop:Generator_ColumnPropNameInTable="Race_idColumn" msprop:Generator_UserColumnName="Race_id" type="xs:int" />
              <xs:element name="Race_name" msprop:Generator_ColumnVarNameInTable="columnRace_name" msprop:Generator_ColumnPropNameInRow="Race_name" msprop:Generator_ColumnPropNameInTable="Race_nameColumn" msprop:Generator_UserColumnName="Race_name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="11" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:races" />
      <xs:field xpath="mstns:Race_id" />
    </xs:unique>
  </xs:element>
</xs:schema>